import request from '../api/baseApi';
import qs from 'qs';

export const userLogin = datas => {
  console.log(false);
  console.log(false);
  console.log(false);
  return request({
    method: 'POST',
    url: '/user/login',
    data: qs.stringify(datas)
  });
};

export const userInfo = () => {
  return request({
    method: 'GET',
    url: '/user/info'
  });
};

export const uesrLogout = () => {
  return request({
    method: 'POST',
    url: '/user/logout'
  });
};
// 获取用户地址
export const userAddress = () => {
  return request({
    method: 'GET',
    url: '/user/address'
  });
};
export const userPoint = () => {
  return request({
    method: 'GET',
    url: '/user/point'
  });
};
